package densetsu.controller;

import densetsu.controller.inputhandling.KeyboardHandler;
import densetsu.controller.inputhandling.MouseHandler;
import densetsu.model.Model;
import densetsu.view.View;

/**
 * Controller will take care of user input and updating the model and such.
 * 
 * @author Koen
 * 
 */
public class Controller {

	private Model model;
	private View view;

	public Controller ( Model model, View view ) {
		this.model = model;
		this.view = view;

		this.model.addObserver ( this.view );
		this.view.addKeyAdapter ( new KeyboardHandler ( this.model ) );
		// TODO: check what arguments MouseHandler needs
		this.view.addMouseAdapter ( new MouseHandler ( ) );
	}

}
